﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeatheRx.Data;

namespace WeatheRx.Web.Models
{
    public class WorkOrderViewModel
    {
        public int? WorkOrderId { get; set; }

        public string JobNum { get; set; }

        public int? ContractorId { get; set; }

        public int? UnitId { get; set; }

        public DateTime? StartDate { get; set; }

        public DateTime? CompletionDate { get; set; }

        public DateTime? PurchaseOrderDate { get; set; }

        public string Rework { get; set; }

        public string ReworkReason { get; set; }

        public DateTime? InvoiceDate { get; set; }

        public DateTime? RequiredPayDate { get; set; }

        public DateTime? ReworkRptDate { get; set; }

        public string InvNo { get; set; }

        public bool? Heating { get; set; }

        public bool? Insulation { get; set; }

        public bool? Electrical { get; set; }

        public bool? ASHRAE { get; set; }

        public string FundingSource { get; set; }

        public int? AgencyId { get; set; }

        public int? JobId { get; set; }

        public bool? Deleted { get; set; }

        public DateTime? DeletedDate { get; set; }

        public int? DeletedBy { get; set; }

        public DateTime? CreatedDate { get; set; }

        public int? CreatedBy { get; set; }

        public Contractor Contractor { get; set; }

        public Job Job { get; set; }

        public Unit Unit { get; set; }

        public ICollection<WorkItem> WorkItems { get; set; }
    }
}